<%
  message = display_post
%>

<div class="message_post" style="padding-left:<%=message.depth * 20%>" id="message_<%= message.id %>">
  <div class="message_list_header">
    <div class="message_list_author">
      <%= get_display_name(message.user.id) %>
    </div>
    <div class="message_list_subject">
      <%= link_to "#{message.subject}", :action => 'show', :id => message %>
    </div>
    <div class="message_list_time">
      <%= message.created_at %>
    </div>
  </div>
  
  <div class="message_list_body">
    <%= textilize_without_paragraph(message.body) %>
  </div>

<div class="message_list_links">
    <%= link_to 'Reply', :action => 'reply', :id => message.id %>
    <%= link_to 'Edit', :action => 'edit', :id => message %>
    <%= link_to 'Destroy', { :action => 'destroy', :id => message }, :confirm => 'Are you sure?', :post => true %>
  </div>


</div>
